package com.os.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author Matt
 * @Date 2022-01-16
 * @Desc:
 * @Version V1.0
 */
@Controller  //利用@controller注解声明一个控制器
public class HelloController {

    @RequestMapping("index")  //利用@requestmappering配置url和方法之间的映射
    public String hello(){
        return "index";  //返回我们之前的配置index地址
    }

}
